﻿<UserControl
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" x:Name="userControl"
    x:Class="Pomodoro.Oob.Controls.ControlBar" 
    RenderTransformOrigin="0.5,0.5">
    <UserControl.Resources>
        <Storyboard x:Key="sbCloseButton_MouseEnter"/>
        <Storyboard x:Key="sbCloseButton_MouseLeave"/>
    </UserControl.Resources>
    <Grid x:Name="grdControlBarRoot" Margin="0,0,0,0">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="24"/>
            <ColumnDefinition Width="*"/>
            <ColumnDefinition Width="100"/>
        </Grid.ColumnDefinitions>
        <Border Margin="0,0,0,0" Grid.ColumnSpan="3" Background="{StaticResource DarkBorder}" 
                Height="25"/>
        <TextBlock HorizontalAlignment="Left" Margin="4,0,5,0" VerticalAlignment="Center" Grid.Column="1" Text="{Binding Title, ElementName=userControl}" TextWrapping="Wrap" FontWeight="Normal" Foreground="White" x:Name="txbTitle" FontSize="12" Visibility="Collapsed"/>
        <StackPanel Grid.Column="2" Orientation="Horizontal" Margin="0,0,2,0" HorizontalAlignment="Right">
            <Button x:Name="minButton" Content="Button" Height="20" Style="{StaticResource MinimizeButton}" Width="30" Margin="0,3,0,2"/>
            <Button x:Name="closeButton" Content="X" Height="20" Style="{StaticResource CloseButton}" Width="40" Margin="0,3,0,2"/>
        </StackPanel>
        <Rectangle Fill="#00FFFFFF" Margin="0,0,0,0" Grid.ColumnSpan="2"/>
        <Image Source="/Images/16x16.png" HorizontalAlignment="Center" VerticalAlignment="Center" Width="16" Height="16"/>
    </Grid>
</UserControl>